module.exports = {
  env: 'dev',  //环境字段
  //数据库基本信息
  database: {
    dbName: 'renquan',
    host: 'localhost',
    port: 3306,
    user: 'root',
    password: 'root',
    options: {
      //解决 Cannot call write after a stream was destroyed 错误
      encrypt: false // Use this if you're on Windows Azure  
    },
  },
  //token配置
  security:{
    secretKey: 'asdfesssasdfs',   //随机字符串，保证令牌安全
    expiresIn: 2*60*60,             //令牌过期时间   
    refreshExpiresIn: 7*24*60*60              //刷新令牌过期的密钥
  },
  //微信信息
  // wx:{
  //   appID: 'wxa92f7ed5020800ba',
  //   appSecret: '43cc10dd4577c5a349926a2e48a5c4b6',
  //   logingUrl: 'https://api.weixin.qq.com/sns/jscode2session?appid=%s&secret=%s&js_code=%s&grant_type=authorization_code'
  // },
}